/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.model;

import java.util.Timer;

/**
 *
 * @author Roosz.OchyE
 */
public class TimerSimpanPublikasi {

    private int waktuInterval;

    public TimerSimpanPublikasi(int waktuTunda) {
        this.waktuInterval = waktuTunda;

        Timer timer = new Timer();
        timer.schedule(new TugasSimpanPublikasi(), 5000, waktuInterval);
    }
}
